package com.kk.netty.nio.network.selector;

import java.io.IOException;
import java.net.Socket;

public class Client {
    public static void main(String[] args) {
        try (Socket socket = new Socket ("localhost", 8080)) {
            System.out.println (socket);
            socket.getOutputStream ( ).write ("hello!".getBytes ( ));
            System.in.read ( );
        } catch (IOException e) {
            e.printStackTrace ( );
        }
    }
}
